package com.cari.oa.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Length;

/**
* Title: ReqUserRef
* Description:需求与人员关系实体
* Company: cari 
* @author  hjx 
* @date    2013-3-11
*/
@Entity
@Table(name = "T_REQ_USER_REF")
public class ReqUserRefEntity implements Serializable {

    private static final long serialVersionUID = 8775225809962095596L;
    @Id
    @Length(max = 32)
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    private String id;
    
    @Column(name="REQTYPE")
    private String typeId;
    
    @Column(name="ENNAME")
    private String enname;
    
    @Column(name="CNNAME")
    private String cnname;
    
    public ReqUserRefEntity(){}
    
    
    
	public ReqUserRefEntity(String enname, String cnname) {
	
		this.enname = enname;
		this.cnname = cnname;
	}



	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTypeId() {
		return typeId;
	}
	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}
	public String getEnname() {
		return enname;
	}
	public void setEnname(String enname) {
		this.enname = enname;
	}
	public String getCnname() {
		return cnname;
	}
	public void setCnname(String cnname) {
		this.cnname = cnname;
	}
}
